package com.pym.bs.service.Impl;

import com.pym.bs.dao.UserMapper;
import com.pym.bs.domain.User;
import com.pym.bs.dto.UserDTO;
import com.pym.bs.service.UserService;
import com.pym.bs.utils.Pageable;
import com.pym.bs.vo.PageVO;
import com.pym.bs.vo.ResultVO;
import com.pym.bs.vo.UserVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public UserDTO findByUsername(String username) {
        return userMapper.selectPasswordByAccount(username);
    }

    @Override
    public ResultVO<UserVO> updatePassword(UserVO user) {
        return null;
    }

    @Override
    public ResultVO<User> addUser(User user) {
        return null;
    }

    @Override
    public ResultVO<UserDTO> editUser(UserDTO userDTO) {
        return null;
    }

    @Override
    public ResultVO<User> delUser(Integer id) {
        return null;
    }

    @Override
    public PageVO<UserDTO> listUser(UserDTO userDTO, Pageable pageable) {
        return null;
    }
}
